package com.zz.routing;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @Author zwh
 * @Date 2019/10/2 10:30
 * @Version 1.0
 **/

/**
 * 工作模式
 */
@Component
@RabbitListener(queues = "work")
public class RouteListener2 {
    @RabbitHandler
    public void messageHandler(String message) {
        System.out.println("RouteListener2===================" + message);
    }
}
